package com.zsl.service;


import com.zsl.model.Product;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class RedisTemplateTestor {


    @Autowired
     private  ProductService2 productService;



    @Test
     public  void testSelectOne(){

         Product product = productService.getSingle(3L);

         System.out.println(product);

     }


     @Test
     public  void testRemove(){

          productService.remove(6L);

     }



     @Test
     public void testSave(){

          Product product = new Product();

          product.setName("test000");


          productService.save(product);


     }
}
